<!--录入补缓考成绩-->
<template>
  <div class="approval-container" style="width:100%">
    <div class="search-container" style="margin:0"></div>
    <div class="plan-entry-table-container" style="margin:0">
      <el-table :data="tableData" style="width: 100%" class="xpaas-table-class" row-class-name="xpaas-row-class"
        cell-class-name="xpaas-cell-class" header-row-class-name="xpaas-header-row-class"
        header-cell-class-name="xpaas-header-cell-class">
        <el-table-column prop="guideitemname" label="指标项名称" align="center" class-name="" label-class-name="">
        </el-table-column>
        <el-table-column prop="guideitemrank" label="级别" align="center" class-name="" label-class-name="">
          <template slot-scope="scope">
            <span v-if="scope.row.guideitemrank == -1">{{ 0 }}</span>
            <span v-if="
              scope.row.guideitemrank == 1 || scope.row.guideitemrank == 2
            ">{{ scope.row.guideitemrank }}</span>
          </template>
        </el-table-column>

        <el-table-column prop="sjcl" label="详细" width="270" align="center">
          <template slot-scope="scope">
            <div class="cz-row-block" v-if="scope.row.guideitemrank > 0">
              <!--              showManualEntryDialogasc=true-->
              <!--              IdUpOneLv    pjitemBydetail1 -->
              <div class="download-buttons" @click="pjitemBydetail1(scope.row.guideitemid)">
                <img src="../../../assets/assessment/icon-plan-record-save.png" alt="" />
                <span>查看</span>
              </div>
            </div>
          </template>
        </el-table-column>
        <el-table-column prop="sjcl" label="删除" width="270" align="center">
          <template slot-scope="scope">
            <div class="cz-row-block" v-if="scope.row.guideitemrank > 0">
              <!--              pjitemremove1   showManualEntryDialogDelete-->
              <div class="download-buttons" @click="pjitemremove1(scope.row.guideitemid)">
                <img src="../../../assets/assessment/icon-plan-record-save.png" alt="" />
                <span> 删除</span>
              </div>
            </div>
          </template>
        </el-table-column>
        <el-table-column prop="sjcl" label="修改" width="270" align="center">
          <template slot-scope="scope">
            <div class="cz-row-block" v-if="scope.row.guideitemrank > 0">
              <!--                 pjitemupdate1            showManualEntryDialogascB
-->
              <div class="ztcz-detail" @click="
                pjitemupdate1(
                  scope.row.guideitemid,
                  scope.row.comments,
                  scope.row.guideid,
                  scope.row.guideitemname,
                  scope.row.guideitemrank,
                  scope.row.parentguideitemid
                )
              ">
                <img src="../../../assets/assessment/icon-plan-record-detail.png" alt="" />
                <span>编辑</span>
              </div>
            </div>
          </template>
        </el-table-column>
        <el-table-column prop="sjcl" label="添加下级指标项" width="270" align="center">
          <template slot-scope="scope">
            <div class="cz-row-block">
              <!--        pjitemsave     showManualEntryDialogascE -->
              <div class="ztcz-detail" v-if="scope.row.guideitemrank != 2" @click="
                pjitemsave1(
                  scope.row.guideitemid,
                  scope.row.comments,
                  scope.row.guideid,
                  scope.row.guideitemname,
                  scope.row.guideitemrank,
                  scope.row.parentguideitemid
                )
              ">
                <img src="../../../assets/assessment/icon-plan-record-detail.png" alt="" />
                <span>添加</span>
              </div>
            </div>
          </template>
        </el-table-column>
        <el-table-column prop="sjcl" label="调整下级指标项顺序" width="270" align="center">
          <template slot-scope="scope">
            <div class="cz-row-block">
              <!--               scope.row.guideitemid,
                   scope.row.comments,
                   scope.row.guideid,
                   scope.row.guideitemname,
                   scope.row.guideitemrank,
                   
                    v-if="scope.row.guideitemrank != 2"
                   -->
              <div class="download-buttones" v-if="scope.row.testof && scope.row.guideitemrank != 2" @click="
                pjTiaozheng(
                  scope.row.guideitemid,
                  scope.row.comments,
                  scope.row.guideid,
                  scope.row.guideitemname,
                  scope.row.guideitemrank,
                  scope.row.parentguideitemid
                )
              ">
                <img src="../../../assets/admin_slices/acem.png" alt="" />
                <span>调整</span>
              </div>
            </div>
          </template>
        </el-table-column>
      </el-table>
    </div>

    <el-dialog title="查看" :visible.sync="showManualEntryDialogasc" width="1185px" :data="tableData"
      class="manual-entry-containerass">
      <div class="my-form-container" style="width:100%;height:488px">
        <el-row>
          <el-col :span="16">
            <div>标准体系名称</div>
            <div class="my-cas">
              <span class="my-from-span">{{
                  this.$route.query.guidename
              }}</span>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>所属上级指标项名称</div>
            <div class="my-cas">
              <span class="my-from-span">{{ table.guideitemname }}</span>
            </div>
          </el-col>
        </el-row>
        <!-- <el-row>
          <el-col :span="16">
            <div>指标项级别</div>
            <div>
              <span>{{ guideitemrank }}</span>
            </div>
          </el-col>
        </el-row> -->
        <el-row>
          <el-col :span="16" v-if="guideitemrank == 1 || guideitemrank == 2">
            <div>指标项级别</div>
            <div class="my-cas">
              <span class="my-from-span">{{ guideitemrank }}</span>
            </div>
          </el-col>
          <el-col :span="16" v-else>
            <div>指标项级别</div>
            <div class="my-cas">
              <span class="my-from-span">{{ guideitemrank + 1 }}</span>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>指标项名称</div>
            <div class="my-cas">
              <span class="my-from-span">{{ guideitemname }}</span>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>指标项说明</div>
            <div class="my-cas">
              <span class="my-from-span">{{ comments }}</span>
            </div>
          </el-col>
        </el-row>
      </div>
    </el-dialog>
    <!--     删除  -->
    <el-dialog title="提示" :visible.sync="showManualEntryDialogDelete" width="983px" style=" height:520px"
      class="message-container">
      <div class="message-text">
        <div v-if="this.namelist.plan"></div>
        <div v-else>确定要删除吗？</div>
      </div>
      <span slot="footer" class="dialog-footer">
        <!--      dialogClickconfirm('Message')  -->
        <button class="green" @click="pjitemremoveList('Message')">确 定</button>
      </span>
      <span slot="footer" class="dialog-footer" style="margin-left:90px">
        <button class="yellow" @click="showManualEntryDialogDelete = false">
          取 消
        </button>
      </span>
    </el-dialog>
    <!--    以上是删除-->
    <el-dialog title="添加" :visible.sync="showManualEntryDialogascE" width="1185px" class="manual-entry-containerass">
      <div class="my-form-container" style="width:700px;height:584px">
        <el-row>
          <el-col :span="16">
            <div>标准体系名称</div>
            <div class="my-cas">
              <span class="my-from-span">{{
                  this.$route.query.guidename
              }}</span>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>采用的标准的等级</div>
            <div class="my-cas">
              <span class="my-from-span">{{
                  this.$route.query.guiderankoption
              }}</span>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>当前级别指标项名称</div>
            <div class="my-cas">
              <span class="my-from-span">{{ guideitemname }}</span>
            </div>
          </el-col>
        </el-row>
        <!-- <el-row>
          <el-col :span="16">
            <div>指标项级别</div>
            <div class="my-cas">
              <span class="my-from-span">{{ guideitemrank }}</span>
            </div>
          </el-col>
        </el-row> -->
        <el-row>
          <el-col :span="16" v-if="guideitemrank == 1 || guideitemrank == 2">
            <div>指标项级别</div>
            <div class="my-cas">
              <span class="my-from-span">{{ guideitemrank }}</span>
            </div>
          </el-col>
          <el-col :span="16" v-else>
            <div>指标项级别</div>
            <div class="my-cas">
              <span class="my-from-span">{{ guideitemrank + 1 }}</span>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>添加下级指标项名称</div>
            <div class="my-cas">
              <el-input v-model="guideitemnameput" style="width: 234px" placeholder="名称填写"></el-input>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>添加下级指标项说明</div>
            <div class="my-cas">
              <el-input v-model="commentsput" style="width: 234px" placeholder="名称填写"></el-input>
            </div>
          </el-col>
        </el-row>
      </div>

      <span slot="footer" class="dialog-footerar">
        <button class="green" style="margin-right:20px;width:95px" @click="pjitemsave">
          保存
        </button>
      </span>
      <span slot="footer" class="dialog-footer">
        <button class="yellow" style="width:95px" @click="showManualEntryDialogascE = flase">
          取 消
        </button>
      </span>
    </el-dialog>

    <el-dialog title="编辑" :visible.sync="showManualEntryDialogascB" width="1185px" class="manual-entry-containerass">
      <div class="my-form-container" style="width:700px;height:584px">
        <el-row>
          <el-col :span="16">
            <div>标准体系名称</div>
            <div class="my-cas">
              <el-input v-model="this.$route.query.guidename" style="width: 234px" placeholder="名称填写" disabled>
              </el-input>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>采用的标准的等级</div>
            <div class="my-cas">
              <el-input v-model="this.$route.query.guiderankoption" style="width: 234px" placeholder="名称填写" disabled>
              </el-input>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>所属上级指标项名称</div>
            <div class="my-cas">
              <el-input v-model="table.guideitemname" style="width: 234px" placeholder="名称填写" disabled></el-input>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16" v-if="guideitemrank == 1 || guideitemrank == 2">
            <div>指标项级别</div>
            <div class="my-cas">
              <el-input v-model="guideitemrank" style="width: 234px" placeholder="名称填写" disabled></el-input>
            </div>
          </el-col>
          <el-col :span="16" v-else>
            <div>指标项级别</div>
            <div class="my-cas">
              <el-input value="0" style="width: 234px" placeholder="名称填写" disabled>
              </el-input>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>指标项名称</div>
            <div class="my-cas">
              <el-input v-model="guideitemname" style="width: 234px" placeholder="名称填写"></el-input>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>指标项说明</div>
            <div class="my-cas">
              <el-input v-model="comments" type="textarea" placeholder="请输入内容" :rows="3" maxlength="300" show-word-limit
                style="width: 100%"></el-input>
            </div>
          </el-col>
        </el-row>
      </div>
      <span slot="footer" class="dialog-footerar">
        <button class="green" style="margin-right:20px;width:95px" @click="pjitemupdate">
          保存
        </button>
      </span>
      <span slot="footer" class="dialog-footer">
        <button class="yellow" style="width:95px" @click="showManualEntryDialogascB = false">
          取 消
        </button>
      </span>
    </el-dialog>

    <el-dialog title="调整" :visible.sync="showManualEntryDialogascD" class="manual-entry-containerats" width="1100px">
      <div>
        <el-row>
          <el-col>
            <div>标准体系名称</div>
            <div class="my-cascs">
              <span class="my-from-spans">{{
                  this.$route.query.guidename
              }}</span>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col>
            <div>指标项名称</div>
            <div class="my-cascs">
              <span class="my-from-spans">{{ guideitemname }}</span>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col>
            <div>指标项级别</div>
            <div class="my-cascs">
              <span class="my-from-spans">{{ guideitemrank }}</span>
            </div>
          </el-col>
        </el-row>

        <el-row>
          <el-col>
            <div style=" height: 296px;">指标项顺序</div>
            <div class="my-cascas">
              <div class="plan-entry-table-container">
                <el-table :data="tableDatas" style="width: 100%;margin-top:190px" height="295" border
                  :header-cell-style="{ 'text-align': 'center' }" :cell-style="{ 'text-align': 'center' }"
                  class="table-data" row-class-name="row-class" cell-class-name="cell-class"
                  header-row-class-name="header-row-class" header-cell-class-name="header-cell-class">
                  <el-table-column fixed prop="guideitemname" label="指标项名称" width="360">
                  </el-table-column>
                  <el-table-column fixed label="调整为" prop="guideitemorder" align="center" width="140">
                    <template slot-scope="scope">
                      <div style="display: flex">
                        <InputItem :name="''" :value="scope.row.guideitemorder" @input="
                          e => {
                            scope.row.guideitemorder = e;
                          }
                        "></InputItem>
                      </div>
                    </template>
                  </el-table-column>
                </el-table>
              </div>
            </div>
          </el-col>
        </el-row>
      </div>
      <span slot="footer" class="dialog-footerar">
        <button class="green" style="margin-right:20px;width:95px" @click="updateShunXu">
          保存
        </button>
      </span>
      <span slot="footer" class="dialog-footerar">
        <button class="yellow" style="width:95px" @click="showManualEntryDialogascD = false">
          取 消
        </button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
import { mapGetters } from "vuex";
import {
  pjitemsave,
  pjitemremove,
  pjitemupdate,
  updateShunXu
} from "../../../api/teacher/admin";
import {
  ByNeLvIdALL,
  IdUpOneLv,
  pjByIdGuide1,
  pjitemBydetail,
  pjitemBydetail1
} from "../../../api/teacher/admin";
import InputItem from "../../../components/InputItem.vue";
export default {
  components: {
    InputItem
  },
  data() {
    return {
      class_frequency: "A,B,C,D",
      class_frequencys: [{ label: "2", value: "2" }],
      //添加
      showManualEntryDialogascE: false,
      //编辑
      showManualEntryDialogascB: false,
      //查看
      showManualEntryDialogasc: false,
      //删除
      showManualEntryDialogDelete: false,

      showManualEntryDialog: false,
      showMessageDialog: false,
      //调整
      showManualEntryDialogascD: false,

      comments: "",
      guideid: "",
      guideitemid: "",
      guideitemname: "",
      guideitemrank: 0,
      parentguideitemid: "",
      commentsput: "", //输入的指标说明
      guideitemnameput: "", //输入的指标名称
      commentsTiaozhengputs: "", //调整的顺序

      class_nameac1: "",
      class_nameac2: "A,B,C,D",
      class_nameac3: "A",
      class_nameac4: "23",
      class_nameac5: "无",

      table: {
        guideitemname: "",
        guideitemrank: ""
      },
      tableDatas: [
        {
          guideitemid: "",
          guideitemname: "",
          guideitemorder: "",
          msg: ""
        }
      ],
      tableData: [],
      yjnameList: [],
      searchNameList: [],
      handleSelection: [],
      namelist: {}
    };
  },
  computed: {
    ...mapGetters(["userInfo"])
  },

  mounted() {

    this.pjitemBydetail();
    this.IdUpOneLv();
    this.ByNeLvIdALL();
  },
  methods: {
    //查询全部维护信息
    pjitemBydetail() {
      console.log(this.tableData, "====")
      let id = {};
      id = this.$route.query.guideid;
      let guidename = {};
      guidename = this.$route.query.guidename;
      console.log(guidename, "this.guidename");
      console.log(id, "");
      return new Promise(() => {
        pjitemBydetail(this.$route.query.guideid).then(res => {
          this.tableData = res.data.data;
          if (this.tableData[0].guideitemname == "") {
            this.tableData[0].guideitemname = "重命名"
          }
          this.tableData.forEach((value) => {
            value["testof"] = false;
          });
          for (let i = 0; i < this.tableData.length; i++) {
            for (let j = i + 1; j < this.tableData.length; j++) {
              if (
                this.tableData[i].guideitemid ==
                this.tableData[j].parentguideitemid
              ) {
                this.tableData[i].testof = true;
                break;
              } else {
                this.tableData[i].testof = false;
                break;
              }
            }
          }


          // console.log(this.tableData, "22222");
          // this.tableData[0].guideitemname = guidename;
        });
      });
    },

    pjByIdGuide1() {
      let id = {};
      id = this.$route.query.guideid;
      console.log(id, "");
      return new Promise(() => {
        pjByIdGuide1(this.$route.query.guideid).then(res => {
          this.tableData = res.data.data;
          console.log(this.tableData, " this.tableData22222222222222222222");
        });
      });
    },

    //查看一条维护信息
    pjitemBydetail1(guideitemid) {
      this.showManualEntryDialogasc = true;
      return new Promise(() => {
        pjitemBydetail1(guideitemid).then(res => {
          this.tableData = res.data.data;
          // this.IdUpOneLv(guideitemid)
          IdUpOneLv(guideitemid).then(res => {
            this.table = res.data.data;
            (this.table.guideitemname = res.data.data.guideitemname),
              console.log(this.table, " this.table");
          });
          (this.guideitemid = res.data.data.guideitemid),
            (this.guideid = res.data.data.guideid),
            (this.parentguideitemid = res.data.data.parentguideitemid),
            (this.guideitemname = res.data.data.guideitemname),
            (this.guideitemrank = res.data.data.guideitemrank),
            (this.comments = res.data.data.comments);
        });
      });
    },

    //删除维护信息
    pjitemremove1(guideitemid) {
      this.showManualEntryDialogDelete = true;
      this.guideitemid = guideitemid;
      this.guideitemrank = guideitemid;
      console.log(guideitemid, "guideitemid");
    },
    pjitemremove() {
      if (this.guideitemrank != 0) {
        let ids = {};
        ids = this.guideitemid;
        console.log(ids, "ids");
        return new Promise(() => {
          pjitemremove(ids).then(res => {
            this.tableData = res.data.data;
            this.showManualEntryDialogDelete = false;
            this.pjitemBydetail();
          });
        });
      } else {
        this.$message.error("顶级菜单不可删除！")
        this.showManualEntryDialogDelete = false;
      }
    },
    pjitemremoveList() {
      console.log('hahass', this.guideitemrank)
      console.log('hahass', this.guideitemid)
      let guideitemid = this.guideitemid
      pjitemBydetail1(guideitemid).then(res => {
        console.log('当前数据', res)
        if (res.data && res.data.data.guideitemrank) {
          ByNeLvIdALL(guideitemid).then(res => {
            console.log('hahass33333', res)
            if (res.data.data.length) {
              this.$message.error("当前级别含有下级信息，请删掉下级信息！")
              this.showManualEntryDialogDelete = false;
            } else {
              pjitemremove(guideitemid).then((r) => {
                this.tableData = r.data.data;
                this.showManualEntryDialogDelete = false;
                this.pjitemBydetail();
              })
            }
          })
        } else {
          this.$message.error("顶级菜单不可删除！")
          this.showManualEntryDialogDelete = false;
        }
      })
    },
    //编辑维护信息
    pjitemupdate1(
      guideitemid,
      comments,
      guideid,
      guideitemname,
      guideitemrank,
      parentguideitemid
    ) {
      this.text = {
        guideitemid: guideitemid,
        comments: comments,
        guideid: guideid,
        guideitemname: guideitemname,
        guideitemrank: guideitemrank,
        parentguideitemid: parentguideitemid
      };
      this.guideitemid = guideitemid;
      (this.comments = comments),
        (this.guideid = guideid),
        (this.guideitemname = guideitemname),
        (this.guideitemrank = guideitemrank),
        (this.parentguideitemid = parentguideitemid);
      this.showManualEntryDialogascB = true;

      IdUpOneLv(guideitemid).then(res => {
        this.table = res.data.data;
        (this.table.guideitemname = res.data.data.guideitemname),
          console.log(this.table, " this.table");
      });
    },
    pjitemupdate() {

      let obj = {
        guideitemid: this.guideitemid,
        comments: this.comments,
        guideid: this.guideid,
        guideitemname: this.guideitemname,
        guideitemrank: this.guideitemrank,
        parentguideitemid: this.parentguideitemid
      };

      return new Promise(() => {
        pjitemupdate(obj).then(res => {

          this.tableData = res.data.data;
          this.showManualEntryDialogascB = false;
          this.pjitemBydetail();
        });
      });
    },
    //添加维护信息
    pjitemsave1(
      guideitemid,
      comments,
      guideid,
      guideitemname,
      guideitemrank,
      parentguideitemid
    ) {
      this.text1 = {
        guideitemid: guideitemid,
        comments: comments,
        guideid: guideid,
        guideitemname: guideitemname,
        guideitemrank: guideitemrank,
        parentguideitemid: parentguideitemid
      };
      this.guideitemid = guideitemid;
      (this.comments = comments),
        (this.guideid = guideid),
        (this.guideitemname = guideitemname),
        (this.guideitemrank = guideitemrank),
        (this.parentguideitemid = parentguideitemid);
      this.guideitemnameput = "";
      this.commentsput = "";
      this.showManualEntryDialogascE = true;
    },
    pjitemsave() {
      let obj = {
        comments: this.commentsput,
        // guideid: this.guideid,
        guideitemname: this.guideitemnameput,
        guideitemrank: this.guideitemrank, //级别
        parentguideitemid: this.guideitemid
      };
      if (this.guideitemrank == -1) {
        obj.guideitemrank = this.guideitemrank + 2;
      } else {
        obj.guideitemrank = this.guideitemrank + 1;
      }
      // guideitemrank 自动向下一级添加
      return new Promise(() => {
        //教员查询到所有数据
        pjitemsave(obj).then(res => {
          this.tableData = res.data.data;
          this.showManualEntryDialogascE = false;
          this.pjitemBydetail();
        });
      });
    },

    //查询到所有下级指标项
    //查询到所有的下级信息，未调整做准备
    pjTiaozheng(
      guideitemid,
      comments,
      guideid,
      guideitemname,
      guideitemrank,
      parentguideitemid
    ) {
      this.text = {
        guideitemid: guideitemid,
        comments: comments,
        guideid: guideid,
        guideitemname: guideitemname,
        guideitemrank: guideitemrank,
        parentguideitemid: parentguideitemid
      };
      this.guideitemid = guideitemid;
      (this.comments = comments),
        (this.guideid = guideid),
        (this.guideitemname = guideitemname),
        (this.guideitemrank = guideitemrank),
        (this.parentguideitemid = parentguideitemid);
      this.showManualEntryDialogascD = true;
      ByNeLvIdALL(guideitemid).then(res => {
        this.tableDatas = res.data.data;
        console.log(
          this.tableDatas,
          "this.tableDatas=====测试===调整================"
        );
      });
    },
    //调整保存
    updateShunXu() {
      console.log(this.tableDatas);

      return new Promise(() => {
        //教员查询到所有数据
        updateShunXu(this.tableDatas).then(res => {
          if (res.data.msg === "0") {
            this.showManualEntryDialogascD = false;
            this.$message.error("调整顺序不符合调整规则，调整顺序失败！");
            this.pjitemBydetail();
          } else {
            this.showManualEntryDialogascD = false;
            this.$message.success("调整顺序成功！");
            this.pjitemBydetail();
          }
        });
      });
    },

    dialogClickconfirm(type) {
      let obj = {};
      if (type === "Message") {
        this.showMessageDialog = !this.showMessageDialog;
      } else if (type === "Rename") {
        obj.id = this.namelist.id;
        obj.status = "0";
        this.showRenameDialog = !this.showRenameDialog;
        this.getUpdate(obj);
      }
    }
  }
};
</script>
<style lang="less" scoped>
@fontFamily: "Microsoft YaHei";

.xpaas-table-class {
  border: 1px solid #004ca7;
  border-radius: 9px;

  // margin: 15px 0;
  > ::v-deep div.el-table__header-wrapper {
    >table.el-table__header {
      >thead {
        >tr.xpaas-header-row-class {
          padding: 0;
          height: 76px;
          background-color: #edf2f9;
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: bold;
          line-height: 20px;
          color: #004ca7;

          >th.xpaas-header-cell-class {
            font-weight: bold;
            border-right: 1px solid #c7d7eb;
            border-left: 0;
            border-bottom: 1px solid #c7d7eb;
            background-color: #edf2f9;

            >div.cell {
              font-size: 16px;
              font-weight: bold;
              font-family: @fontFamily;
              color: #004ca7;
            }
          }
        }
      }
    }
  }

  > ::v-deep div.el-table__body-wrapper {
    >table.el-table__body {
      >tbody {
        >tr.xpaas-row-class {
          >td.xpaas-header-cell-class {
            border-right: 1px solid #c7d7eb;
            border-left: 0;
            border-bottom: 1px solid #c7d7eb;
            background-color: #edf2f9;

            >div.cell {
              font-size: 16px;
              font-weight: bold;
              font-family: @fontFamily;
              color: #004ca7;
            }
          }

          >td.xpaas-cell-class {
            height: 76px;
            border-right: 1px solid #c7d7eb;
            border-left: 0;
            border-bottom: 1px solid #c7d7eb;

            >div.cell {
              font-weight: normal;
              font-family: @fontFamily;
              color: #004ca7;
            }
          }
        }
      }
    }
  }
}

.table-container {
  margin-top: 30px;

  .el-table td,
  .el-table th.is-leaf,
  .el-table--border,
  .el-table--group {
    border-color: #c7d7eb;
  }

  .el-table__header tr,
  .el-table__header th {
    padding: 0;
    height: 76px;
    background-color: #edf2f9;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    line-height: 20px;
    color: #004ca7;
  }

  .el-table__body tr,
  .el-table__body td {
    padding: 0;
    height: 86px;
  }

  .wrapper-button {
    display: flex;
    flex-direction: column;
    align-items: center;

    >div {
      margin-bottom: 8px;
    }
  }
}

.table-container::v-deep .el-table__header th {
  border-color: #c7d7eb !important;
  padding-left: 10px;
}

.table-container {
  margin-top: 30px;

  .table-data {
    width: 100%;
    border: 0.8px solid #004ca7;
    border-radius: 9px;
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #004ca7;
  }
}

.approval-container {
  .my-cas {
    margin-right: -200px;
    margin-left: 30px;
  }

  .my-from-span {
    width: 195px;
    height: 39px;
    font-size: 17px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    line-height: 39px;
    color: #004ca7;
    opacity: 1;
  }

  .back-container {
    .back-text {
      margin-top: 33px;

      >div {
        display: inline-block;

        &:nth-child(1) {
          padding-left: 111px;
          font-size: 20px;
          color: rgba(0, 76, 167, 1);
          font-weight: bold;
          vertical-align: top;
        }
      }
    }

    .el-dialog__footer {
      padding-bottom: 95px;
    }
  }

  .manual-entry-container {
    .el-dialog__body {
      height: 390px;

      >div {
        width: 1014px;
        border: 1px solid rgba(0, 76, 167, 0.8);
        border-radius: 6px;
        margin: 0 auto;

        >div {
          border-bottom: 1px solid rgba(0, 76, 167, 0.39);

          &:last-child {
            border-bottom: none;
          }

          >div {
            display: flex;

            >div {
              height: 96px;
              display: flex;
              align-items: center;
              justify-content: center;

              &:nth-child(1) {
                width: 420px;
                text-align: center;
                font-size: 16px;
                font-weight: bold;
                color: #004ca7;
                background: rgba(77, 129, 192, 0.1);
              }

              &:nth-child(2) {
                padding-left: 19px;
              }
            }
          }
        }
      }
    }

    .el-dialog__footer {
      padding-bottom: 43px;
    }

    .dialog-footer {
      >button {
        width: 87px;
        height: 36px;
        background: #fff6ef;
        border: 1px solid #f3b815;
        border-radius: 6px;
        background: rgba(255, 246, 239, 1);
        font-size: 18px;
        color: #f3b815;
      }
    }

    .dialog-footerar {
      >button {
        width: 87px;
        height: 36px;
        background: #86c989;
        border: 1px solid #378834;
        border-radius: 6px;
        background: rgba(255, 246, 239, 1);
        font-size: 18px;
        color: #1dbb3f;
      }
    }
  }

  .message-container {
    .message-text {
      >div {
        padding: 57px 0 63px 0;
        font-size: 18px;
        font-family: Microsoft YaHei;
        font-weight: bold;
        line-height: 20px;
        color: #004ca7;
        text-align: center;
      }
    }

    .el-dialog__footer {
      padding-bottom: 95px;
      display: flex;
      justify-content: space-evenly;
    }
  }

  .paper-message-container {
    .paper-message-text {
      >div {
        padding: 57px 0 63px 0;
        font-size: 18px;
        font-family: Microsoft YaHei;
        font-weight: bold;
        line-height: 20px;
        color: #004ca7;
        text-align: center;
      }
    }

    .el-dialog__footer {
      padding-bottom: 95px;
    }

    .confirm-button {
      width: 87px;
      height: 36px;
      padding: 0;
      background: #f1fff8;
      border: 1px solid #02c86c;
      border-radius: 4px;
      font-size: 18px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #02c86c;
      cursor: pointer;
      margin-right: 92px;
    }

    .cancle-button {
      .confirm-button;
      background: #fff6ef;
      border: 1px solid #f3b815;
      color: #f3b815;
      margin-right: 0px;
    }
  }

  .upload-paper-container {
    .paper-container {
      width: 100%;
      height: 236px;
      opacity: 1;

      .paper-container-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        font-family: Microsoft YaHei;

        margin-bottom: 35px;
        border: 1px solid #004ca7;

        .paper-container-box1 {
          width: 233px;
          height: 126px;
          background: rgba(0, 76, 167, 0.1);
          opacity: 0.1;
          border-radius: 5px 0px 0px 0px;
          display: flex;
          align-items: center;
          justify-content: center;

          .title {
            width: 90px;
            height: 24px;
            font-size: 18px;
            font-family: Microsoft YaHei;
            font-weight: bold;
            line-height: 20px;
            color: rgba(0, 76, 167, 1);
            opacity: 1;
          }
        }

        .paper-container-box2 {
          margin-left: 15px;
        }

        .upload-button {}

        .file-name {
          max-width: 340px;
          margin-right: 10px;
        }

        .scan-button {
          width: 62px;
          height: 28px;
          line-height: 28px;
          background: #fff6ef;
          border: 1px solid #f3b815;
          border-radius: 4px;
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #f3b815;
          text-align: center;
          cursor: pointer;
        }

        .download-button {
          .scan-button;
          background: #f1f8fe;
          border: 1px solid #51aef6;
          color: #51aef6;
        }

        img {
          width: 18px;
          height: 19px;
          margin-right: 14px;
        }

        .re-upload-button {
          .upload-button;
          width: 80px;
          color: #02c86c;
          border: 1px solid #02c86c;
          background: #dfffef;

          input {
            width: 80px;
          }
        }
      }
    }

    .el-dialog__footer {
      padding-bottom: 95px;
    }

    .confirm-button {
      width: 87px;
      height: 36px;
      padding: 0;
      background: rgba(90, 101, 204, 0.1);
      border: 1px solid #5230e9;
      border-radius: 4px;
      font-size: 18px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #5230e9;
      cursor: pointer;
      margin-right: 92px;
    }

    .cancle-button {
      .confirm-button;
      background: #ffefef;
      border: 1px solid #ff3819;
      color: #ff3819;
      margin-right: 0px;
    }

    .download-button {
      .confirm-button;
      background: #f1f8fe;
      border: 1px solid #51aef6;
      color: #51aef6;
      margin-right: 92px;
    }
  }

  .plan-entry-table-container {
    margin-top: 30px;

    .el-table td,
    .el-table th.is-leaf,
    .el-table--border,
    .el-table--group {
      border-color: #c7d7eb;
    }

    .el-table__header tr,
    .el-table__header th {
      padding: 0;
      height: 76px;
      background-color: #edf2f9;
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: bold;
      line-height: 20px;
      color: #004ca7;
    }

    .el-table__body tr,
    .el-table__body td {
      padding: 0;
      height: 86px;
    }

    .export-button {
      background: #ebe6ff;

      cursor: pointer;

      background: #fff6ef;
      border: 1px solid #5230e9;
      width: auto;
      height: 28px;
      line-height: 28px;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;

      >span {
        font-size: 14px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #f3b815;
      }

      >img {
        width: 16px;
        height: 16px;
        margin-right: 5px;
      }
    }

    .bk-lucj-import-button {
      .export-button;
      width: 70px;
      background: #f1fff8;
      border: 1px solid #02c86c;
      box-sizing: border-box;
      margin: 0 auto 12px;

      &:last-child {
        margin-bottom: 0px;
      }

      >span {
        color: #02c86c;
      }
    }

    .bk-lucj-expot-button {
      .export-button;
      width: 156px;
      background: #fef1e8;
      border: 1px solid #f86900;
      box-sizing: border-box;
      margin: 0 auto 12px;

      &:last-child {
        margin-bottom: 0px;
      }

      >span {
        color: #f86900;
      }
    }

    .tjst-button {
      width: 78px;
      height: 27px;
      line-height: 27px;
      background: #f1f8fe;
      border: 1px solid #51aef6;
      border-radius: 4px;
      text-align: center;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #51aef6;
      cursor: pointer;
    }

    .dh-button {
      .tjst-button;
      margin-top: 12px;
      background: #ffefef;
      border: 1px solid #ff3819;
      color: #ff3819;
    }

    .cx-button {
      .tjst-button;
      background: #ffefef;
      border: 1px solid #ff3819;
      color: #ff3819;
    }

    .cz-block {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .txmtjh-button {
      .tjst-button;
      width: 114px;
      background: #fff6ef;
      border: 1px solid #f3b815;
      color: #f3b815;
    }

    .ckmtjh-button {
      .tjst-button;
      width: 114px;
      background: #f1fff8;
      border: 1px solid #02c86c;
      color: #02c86c;
    }

    .xz-button {
      .tjst-button;
      width: 51px;
      background: #edf2f9;
      border: 1px solid #004ca7;
      color: #004ca7;
    }

    .name-button {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      line-height: 25px;
      color: #004ca7;
      text-decoration: underline;
    }

    .name-button:hover {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: bold;
      line-height: 25px;
      color: #187ef8;
    }

    .upload-button {
      .tjst-button;
      width: 98px;
      margin: 0 5px;
      background: #efebff;
      border: 1px solid #5230e9;
      color: #5230e9;
    }

    .download-button {
      .tjst-button;
      width: 48px;
      margin: 0 5px;
    }

    .yl-button {
      .tjst-button;
      width: 48px;
      margin: 0 5px;
      background: #fff6ef;
      border: 1px solid #f3b815;
      color: #f3b815;
    }

    .cz-row-block {
      display: flex;
      flex-direction: row;
      justify-content: space-evenly;
      align-items: center;

      .download-buttones {
        align-items: center;
        width: 78px;
        height: 28px;
        line-height: 28px;
        background: #efebff;
        border: 1px solid #5230e9;

        border-radius: 6px;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

        >span {
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #5230e9;
        }

        >img {
          width: 16px;
          height: 16px;
          margin-right: 10px;
        }
      }

      .download-buttons {
        align-items: center;
        width: 78px;
        height: 28px;
        line-height: 28px;
        background: #ffefef;
        border: 1px solid #ff3819;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

        >span {
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #fb563c;
        }

        >img {
          width: 16px;
          height: 16px;
          margin-right: 10px;
        }
      }

      .ztcz-detail {
        .download-buttons;
        background: #f1fff8;
        border: 1px solid #02c86c;

        >span {
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #02c86c;
        }
      }
    }

    .zz-button {
      .tjst-button;
      width: 132px;
      margin: 5px;
      background: #efebff;
      border: 1px solid #5230e9;
      color: #5230e9;
    }

    .tx-button {
      .tjst-button;
      width: 132px;
      letter-spacing: 2px;
      margin: 0 5px;
      background: #f1f8fe;
      border: 1px solid #51aef6;
      color: #51aef6;
    }

    .sjfx-button {
      .tjst-button;
      width: 114px;
      margin: 0 5px;
      background: #fff6ef;
      border: 1px solid #f3b815;
      color: #f3b815;
    }
  }

  .choose-ypr-container {
    width: 767px;
    margin: 0px auto;

    .choose-ypr-search-container {
      .el-input--prefix .el-input__inner {
        padding-left: 30px;
      }

      .el-input__inner {
        &::placeholder {
          color: #b8b8b8;
        }

        &::-webkit-input-placeholder {
          /* WebKit browsers 适配谷歌 */
          color: #b8b8b8;
        }

        &:-moz-placeholder {
          /* Mozilla Firefox 4 to 18 适配火狐 */
          color: #b8b8b8;
        }

        &::-moz-placeholder {
          /* Mozilla Firefox 19+ 适配火狐 */
          color: #b8b8b8;
        }

        &:-ms-input-placeholder {
          /* Internet Explorer 10+  适配ie*/
          color: #b8b8b8;
        }
      }

      display: flex;
      flex-direction: row;
      align-items: center;

      .title {
        font-size: 18px;
        font-family: Microsoft YaHei;
        font-weight: bold;
        line-height: 20px;
        color: #004ca7;
        margin-right: 5px;
      }

      .search-button {
        width: 127px;
        height: 28px;
        line-height: 28px;
        background: #f1f8fe;
        border: 1px solid #51aef6;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

        >span {
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #51aef6;
        }

        >img {
          width: 20px;
          height: 20px;
          margin-right: 4px;
        }
      }

      .button-list {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-left: 21px;

        .button-item {
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: center;
          position: relative;
          width: 69px;
          height: 27px;
          line-height: 27px;
          border: 1px solid #004ca7;
          border-radius: 4px;
          margin-right: 10px;
          text-align: center;
          font-size: 14px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #004ca7;

          .del-icon {
            position: absolute;
            right: 0px;
            top: 0px;
            width: 12px;
            height: 12px;
            padding: 2px;
          }
        }
      }
    }

    .choose-ypr-table-container {
      margin-top: 30px;

      .el-table td,
      .el-table th.is-leaf,
      .el-table--border,
      .el-table--group {
        border-color: #c7d7eb;
      }

      .el-table__header tr,
      .el-table__header th {
        padding: 0;
        height: 57px;
        background-color: #edf2f9;
        font-size: 16px;
        font-family: Microsoft YaHei;
        font-weight: bold;
        line-height: 20px;
        color: #004ca7;
      }

      .el-table__body tr,
      .el-table__body td {
        padding: 0;
        height: 51px;
      }

      .table-data {
        width: 100%;
        border: 0.8px solid #004ca7;
        border-radius: 9px;
        font-size: 14px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #004ca7;
      }
    }
  }

  .manual-entry-containerass {
    .el-dialog__body {
      >div {
        width: 1014px;
        border: 1px solid rgba(0, 76, 167, 0.8);
        border-radius: 6px;
        margin: 0 auto;

        >div {
          border-bottom: 1px solid rgba(0, 76, 167, 0.39);

          &:last-child {
            border-bottom: none;
          }

          >div {
            display: flex;

            >div {
              width: 900px;
              height: 96px;
              display: flex;
              align-items: center;
              justify-content: center;

              &:nth-child(1) {
                width: 900px;
                text-align: center;
                font-size: 16px;
                font-weight: bold;
                color: #004ca7;
                background: rgba(77, 129, 192, 0.1);
              }
            }
          }
        }
      }
    }

    .el-dialog__footer {
      padding-bottom: 43px;
    }

    .dialog-footer {
      >button {
        width: 87px;
        height: 36px;
        background: #fff6ef;
        border: 1px solid #f3b815;
        border-radius: 6px;
        background: rgba(255, 246, 239, 1);
        font-size: 18px;
        color: #f3b815;
      }
    }
  }

  .manual-entry-containerats {
    .el-dialog__body {
      >div {
        width: 1014px;
        border: 1px solid rgba(0, 76, 167, 0.8);
        border-radius: 6px;
        margin: 0 auto;

        >div {
          border-bottom: 1px solid rgba(0, 76, 167, 0.39);

          &:last-child {
            border-bottom: none;
          }

          >div {
            display: flex;

            >div {
              width: 100%;
              height: 76px;
              display: flex;
              align-items: center;
              justify-content: center;

              &:nth-child(1) {
                text-align: center;
                font-size: 16px;
                font-weight: bold;
                color: #004ca7;
                background: rgba(77, 129, 192, 0.1);
              }
            }
          }
        }
      }
    }

    .el-dialog__footer {
      padding-bottom: 43px;
    }

    .dialog-footer {
      >button {
        width: 87px;
        height: 36px;
        background: #fff6ef;
        border: 1px solid #f3b815;
        border-radius: 6px;
        background: rgba(255, 246, 239, 1);
        font-size: 18px;
        color: #f3b815;
      }
    }
  }

  .pagination-block {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
}

.approval-container {
  .my-form {
    width: 100%;
    border: 1px solid rgba(0, 76, 167, 0.8);
    margin: 57px auto 19px;
    border-radius: 9px;
  }

  .item-row .el-col {
    display: flex;
    align-items: center;
    min-height: 60px;
    border-right: none !important;
  }

  .item-row .el-col:not(:first-child) {
    border-left: 1px solid rgba(0, 76, 167, 0.39);
  }

  .single-row .el-col:not(:last-child) {
    border-right: 1px solid rgba(0, 76, 167, 0.39);
  }

  .my-form .single-row:not(:last-child) {
    border-bottom: 1px solid rgba(0, 76, 167, 0.39);
  }

  .my-cascas {
    display: flex;
  }

  .dica {
    width: 100px;
  }

  .mydica {
    width: 100px;
  }

  .my-from-spans {
    width: 195px;
    height: 39px;
    font-size: 17px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    line-height: 39px;
    color: #004ca7;
    opacity: 1;
  }
}
</style>

<style lang="less" scoped>
@import "../../../styles/approval.less";

.plan-entry-table-container {
  margin-top: 30px;

  .table-data {
    width: 100%;
    border: 0.8px solid #004ca7;
    border-radius: 9px;
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #004ca7;
  }
}
</style>
